home *** CD-ROM | disk | FTP | other *** search
/ L' Effet Pommier 3 / L'Effet Pommier - Volume 03.iso / Programmation / Alpha ƒ / Help / Tcl Library - auto-loading < prev    next >
Text File  |  1994-03-08  |  986b  |  24 lines

  1.  
  2. Alpha now supports auto-loading of tcl procs. In order to use this 
  3. facility, you need to create an index file for each directory that contains 
  4. tcl files and add that directory to the definition of 'auto_path' at the 
  5. end of of ":Tcl:SystemCode:AlphaBits.tcl". This index file must be 
  6. recreated each time you add or delete file or procs within files from these 
  7. directories. 
  8.  
  9. Index files are created by the 'auto_mkindex' proc. 'auto_mkindex' takes 
  10. two arguments, a directory name, and a string pattern (not a regular 
  11. expression, see the documentation of 'string match' from the Tcl help file 
  12. for more details on string patterns) used to define the files from that 
  13. directory that need to be indexed. 
  14.  
  15. For example, if I've added a new file or proc to a file in the UserCode 
  16. directory supplied with this release, I go to the Tcl shell (from the 
  17. File menu), and do the following:
  18.  
  19. Alpha ─> cd
  20. Alpha ─> auto_mkindex :Tcl:Usercode *.tcl
  21. auto_mkindex :Tcl:Usercode *.tcl
  22. Alpha ─>
  23.  
  24.